package com.lcxsoft.orderservice.entity;

import java.math.BigDecimal;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;

import java.time.LocalDateTime;
import java.util.Date;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * <p>
 * 
 * </p>
 *
 * @author lcx
 * @since 2022-01-22
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="Orders对象", description="")
public class Orders implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "订单主键")
    @TableId(value = "orders_id", type = IdType.ID_WORKER_STR)
    private String ordersId;

    @ApiModelProperty(value = "物品主键")
    private String goodsId;

    @ApiModelProperty(value = "用户主键")
    private String userId;

    @ApiModelProperty(value = "创建时间")
    @TableField(fill = FieldFill.INSERT)
    @DateTimeFormat( pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createtime;

    @ApiModelProperty(value = "更新时间")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    @DateTimeFormat( pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime updatetime;

    @ApiModelProperty(value = "删除时间")
    @DateTimeFormat( pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime deletetime;

    @ApiModelProperty(value = "是否删除")
    private Boolean deleteflag;

    @ApiModelProperty(value = "购买数量")
    private Integer ordersAmount;

    @ApiModelProperty(value = "单价")
    private BigDecimal ordersPrice;

    @ApiModelProperty(value = "总价")
    private BigDecimal ordersTottle;

    @ApiModelProperty(value = "学校主键")
    private String schoolId;


}
